package com.university.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.university.pojo.cqe.query.FoodQuery;
import com.university.pojo.dto.FoodOrderDTO;
import com.university.pojo.entity.FoodOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FoodOrderMapper extends BaseMapper<FoodOrder> {

    void insertList(@Param("foodList") List<FoodOrder> foodList);

    List<FoodOrderDTO> userGetFoodOrder(FoodQuery query);

    IPage<FoodOrderDTO> adminGetFoodOrderPage(IPage<FoodOrderDTO> page, @Param("query") FoodQuery query);
}
